package com.naiterui.ehp.bs.wechat.protocol.msg.subscribe;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 【微信接口协议】跳转小程序的订阅通知
 *
 * @author yangfuya
 * @version 1.0
 * @date 2021/4/8 17:16
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SubscribeMp {
    /**
     * 小程序appid
     */
    @JsonProperty("appid")
    private String appId;
    /**
     * 小程序路径
     */
    @JsonProperty("pagepath")
    private String pagePath;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
